
<?php

function getInfo($from, $to, $str)
{
    preg_match_all('/'.$from.'(.*?)'.$to.'/si', $str,$info);
    // print_r($info);//print the array
    return $info[1];
}

 $title=$form_Content;
  $url="http://jr12.blog.163.com/blog/static/211748236201393105256778";
  $f = new SaeFetchurl();
  $library = $f->fetch($url);
  
$from = ' <div\sclass="bct fc05 fc11 nbw-blog ztag">';
$to = '<\/div>';
$arr = getInfo($from, $to, $library);
$title = trim($arr[0]);


//echo $title;

$a=explode('/',$url);
var_dump($a);
echo $a[5];
?>



